package com.xyb.service;

import com.xyb.dao.CourseDetailDao;
import com.xyb.entity.CourseDetail;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Optional;

@Service
public class WebCourseDetailService {
    @Resource
    private CourseDetailDao courseDetailDao;

    public CourseDetail getCourseDetailByCourseDetailId(Long courseDetailId) {
        Optional<CourseDetail> optional = courseDetailDao.findById(courseDetailId);
        return optional.get();
    }
}
